package com.google;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;

import com.google.utility.EntityManagerFactoryUtil;
import com.google.utility.JpaUtil;

public class AbstractBaseComparision {

	private static String PERSISTENCE_UNIT = "hibernate_performance_example";
	
	static protected EntityManager createEntityManager() {
		final EntityManagerFactory EMF = EntityManagerFactoryUtil.getEntityManagerFactory(PERSISTENCE_UNIT);
		return JpaUtil.createEntityManager(EMF);
	}

}
